package fire.button;

public class QuitButton extends Button {

	public QuitButton( double x, double y) {
		super("name", x, y, 999, "quit");
	}

	@Override
	public void mouseInside() {
		setGraphic("quit_hover");

	}

	@Override
	public void mouseOutside() {
		setGraphic("quit");

	}

	@Override
	public void leftClick() {
		System.exit(0);

	}

	@Override
	public void middleClick() {

	}

	@Override
	public void rightClick() {

	}
}
